<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/page/inc/taglib.jsp"%>
<div class="pageContent">
	<form method="post" action="${pageContext.request.contextPath}${requestScope.record ==null ?'/inventory/packingSetting/insert' :'/inventory/packingSetting/update' }" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
		<div class="pageFormContent" layoutH="56">
			<!-- 关闭窗口 -->
			<input type="hidden" name="callbackType" value="closeCurrent" />
			<!-- 隐藏表单 -->
			<c:if test="${requestScope.record !=null}">
				<input type="hidden" name="packingSettingId" value="${requestScope.record.packingSettingId}" />
			</c:if>
			<p class="nowrap">
				<label>货箱名</label> <input name="packingName" class="required" maxlength="256" type="text" value="${requestScope.record.packingName}" />
			</p>
			<p class="nowrap">
				<label>货箱编号</label> <input name="packingNum" class="required digits" maxlength="50" type="text" value="${requestScope.record.packingNum}" />
			</p>
			<p class="nowrap">
				<label>产品</label> 
				<%-- <input name="number" class="required digits" maxlength="11" type="text" value="${requestScope.record.number}" /> --%>
				<input type="hidden" name="prdlookup.merchantProductNormId" value="${requestScope.record.merchantProductNormId}"/>
				<input type="hidden" name="prdlookup.merchantProductId" value="${requestScope.record.merchantProductId}"/>
				<input  class="readonly" readonly type="text" class="required" name="prdlookup.normName" value="${requestScope.merchantProductNorm.normName}" lookupGroup="prdlookup" />
				<a class="btnLook" href="${pageContext.request.contextPath}/inventory/packingSetting/chooseProductList" lookupGroup="prdlookup">查找带回</a>		
			</p>
			<p class="nowrap">
				<label>货箱数量</label> <input name="number" class="required digits" maxlength="11" type="text" value="${requestScope.record.number}" />
			</p>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">保存</button>
						</div>
					</div>
				</li>
				<li>
					<div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div>
				</li>
			</ul>
		</div>
	</form>
</div>
